import { GUI } from 'three/examples/jsm/libs/dat.gui.module.js';

let THREEJS_PANEL_INSTANCE = null;



class Panel {
    constructor() {}

    static getInstance() {
        return THREEJS_PANEL_INSTANCE ? THREEJS_PANEL_INSTANCE : (THREEJS_PANEL_INSTANCE = new Panel());
    }

    init() {
        let panel = new GUI({ width: 310 });
        let folder1 = panel.addFolder('Visibility');
        this.settings = {
            // 'focus reset': this.reset.bind(this),
            'rotation speed': 0.0005
        };
        folder1.add(this.settings, 'rotation speed', 0, 0.005, 0.00005);
        // folder1.add(this.settings, 'focus reset');
        folder1.open();
        panel.close();
    }
}
export default Panel;
